package com.longmao.eduorder.client;

import com.longmao.commonutils.ordervo.UcenterMemberOrder;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author longmao
 * @date 2022/2/28 10:48
 * Content:
 */
@Component
@FeignClient(name = "service-ucenter",fallback = UcenterOrderClientImpl.class)
public interface UcenterOrderClient {

    /**
     * 根据token字符串获取用户信息
     * @param id
     * @return
     */
    @PostMapping("/educenter/member/getUserInfoOrder/{id}")
    public UcenterMemberOrder getUserInfoOrder(@PathVariable("id") String id);
}
